package com.enjoyor.soa.traffic.core.tsms.mapper.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.enjoyor.soa.traffic.core.tsms.constant.SchemeInfoSqlId;
import com.enjoyor.soa.traffic.core.tsms.constant.TemplateSqlId;
import com.enjoyor.soa.traffic.core.tsms.domain.SchemeInfo;
import com.enjoyor.soa.traffic.core.tsms.mapper.ISchemeInfoMapper;
import com.enjoyor.soa.traffic.frame.support.mybatis.mapper.impl.BaseMapper;
import com.enjoyor.soa.traffic.util.pojo.Page;

@Service
@Transactional
public class SchemeInfoMapper extends BaseMapper<SchemeInfo> implements ISchemeInfoMapper {

	@Override
	public Page getSchemeInfoPage(Page page) {
		// TODO Auto-generated method stub
		return this.selectPageInfo(getSqlName(SchemeInfoSqlId.SQL_SELECT_ALL), page);
	}

	@Override
	public List<SchemeInfo> getSchemeInfoList(Map map) {
		// TODO Auto-generated method stub
		return sqlSessionTemplate.selectList(getSqlName(SchemeInfoSqlId.SQL_SELECT_LIST), map);
	}
	
	@Override
	public List<SchemeInfo> getSchemeBaseInfoList(Map map) {
		// TODO Auto-generated method stub
		return sqlSessionTemplate.selectList(getSqlName(SchemeInfoSqlId.SQL_SELECT_BASE_LIST), map);
	}
	
	@Override
	public List<SchemeInfo> getSchemeInfoListBySchemeIdList(Map map) {
		// TODO Auto-generated method stub
		return sqlSessionTemplate.selectList(getSqlName(SchemeInfoSqlId.SQL_SELECT_LIST_BYLIST), map);
	}

}